home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / GraphicsCards / StormMesa / book / Makefile < prev    next >
Makefile  |  1998-12-15  |  2KB  |  89 lines

  1. # $Id: Makefile,v 3.1 1998/04/21 23:58:11 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # Makefile for programs from the OpenGL Programming Guide
  23.  
  24.  
  25. # $Log: Makefile,v $
  26. # Revision 3.1  1998/04/21 23:58:11  brianp
  27. # added LIBDIR variable
  28. #
  29. # Revision 3.0  1998/02/14 18:27:58  brianp
  30. # initial rev
  31. #
  32.  
  33.  
  34. ##### MACROS #####
  35.  
  36. INCDIR = ../include
  37. LIBDIR = ../lib
  38.  
  39. GL_LIBS = -L$(LIBDIR) -lglut -lMesaGLU -lMesaGL -lm $(XLIBS)
  40.  
  41. LIB_DEP = $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(GLU_LIB) $(LIBDIR)/$(GLUT_LIB)
  42.  
  43. PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
  44.     bezcurve bezmesh checker clip colormat cube depthcue dof \
  45.     double drawf feedback fog fogindex font hello image light \
  46.     lines list material mipmap model movelight nurbs pickdepth \
  47.     picksquare plane planet polyoff polys quadric robot sccolorlight \
  48.     scene scenebamb sceneflat select smooth stencil stroke surface \
  49.     teaambient teapots tess tesswind texbind texgen texprox texsub \
  50.     texturesurf torus trim unproject varray wrap 
  51.  
  52.  
  53.  
  54. ##### RULES #####
  55.  
  56. .SUFFIXES:
  57. .SUFFIXES: .c
  58.  
  59. .c: $(LIB_DEP)
  60.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  61.  
  62.  
  63.  
  64. ##### TARGETS ######
  65.  
  66. default:
  67.     @echo "Specify a target configuration"
  68.  
  69. clean:
  70.     -rm *.o *~
  71.  
  72. realclean:
  73.     -rm $(PROGS)
  74.     -rm *.o *~
  75.  
  76. targets: $(PROGS)
  77.  
  78. # execute all programs
  79. exec: $(PROGS)
  80.     @for prog in $(PROGS) ;            \
  81.     do                    \
  82.         echo -n "Running $$prog ..." ;    \
  83.         $$prog ;            \
  84.         echo ;                \
  85.     done
  86.  
  87.  
  88. include ../Make-config
  89.